function BattleData(){
    this.hp = 0;
    this.pos = 0;
    this.buffer = null;
}

BattleData.prototype.incHp = function(hp){ this.hp += hp; if(this.hp > 100) this.hp = 100;};

BattleData.prototype.decHp = function(hp) { this.hp-=hp; if(this.hp < 0) this.hp = 0;};

BattleData.prototype.isDead = function( ) { return this.hp <= 0; };

module.exports = BattleData;
